/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/
@import '~@/assets/styles/mixins.scss';
@import '~@/assets/styles/variable.scss';


$--color-primary: #141414;

/* 改变 icon 字体路径变量，必需 */
// $--font-path: '~element-ui/lib/theme-chalk/fonts';

// @import "~element-ui/packages/theme-chalk/src/index";
html{
  width: 100%;
  overflow-x: auto;
}

body {
  background-color: #EEEEEE;
  color: #141414;
  line-height: 1.4;
  letter-spacing: 0;
  font-family: PingFangSC-Regular , arial;
}

* {
  margin: 0;
  padding: 0;
  border: 0;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  // -webkit-overflow-scrolling:touch;
  /*超出标签宽度自动换行*/
  word-wrap: break-word;
  word-break: break-all;
  /*为元素设定的宽度和高度决定了元素的边框盒*/
  box-sizing:border-box;
  -moz-box-sizing:border-box;
  -webkit-box-sizing:border-box;
}

/*取消H5浏览器聚焦样式*/
img,button, textarea, input ,a{
  vertical-align: middle;
  border: none;
  outline: medium !important;
  text-decoration: none;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}


/**
global styles for app
 */
.router-fade-enter-active, .router-fade-leave-active {
  transition: opacity .3s;
}

.router-fade-enter, .router-fade-leave-active {
  opacity: 0;
}

//输入框占位字体颜色
::-webkit-input-placeholder {color:$placeholder-color;}
:-moz-placeholder {color:$placeholder-color;}
::-moz-placeholder {color:$placeholder-color;}
:-ms-input-placeholder {color:$placeholder-color;}

//复写饿了么样式
.el-message{
  top: 100px !important;
  border: none !important;
  background: rgba(0,0,0,0.5) !important;
  color: #FFFFFF !important;
  min-width: 100px !important;
  .el-message__icon{
    font-size: 14px;
    color: #ffffff;
  }
  .el-message__content{
    color: #fff;
  }
}
.el-message-box{
  width: 280px;
}
.el-loading-spinner i{
  font-size: 46px;
}
// .icon-select{@include icon-select;}
.dialog-bottom{
  border-top: 1px solid #999;
  width: 100%;
  height: 1.6rem;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  .btn-prev{
    width:2.27rem;
    line-height:0.8rem;
    text-align: center;
    background:rgba(255,255,255,1);
    border-radius:0.04rem;
    border:1px solid rgba(20,20,20,1);
    margin-right: 0.34rem;
  }
  .btn-next{
    flex-grow: 1;
    line-height: 0.8rem;
    background: #141414;
    border-radius: 0.04rem;
    color: #fff;
    text-align: center;
  }
}

/*pc样式*/
.bs4-lg, .bs4-xl, .bs4-md {
  font-size: 12px;

  .top-title{
    font-family:PingFangSC-Semibold;
    font-weight:600;
  }
  .center-container{
    width: $primary-width;
    min-width: $primary-width;
    max-width: $primary-width;
    margin: 0 auto;
  }
  input::-webkit-outer-spin-button,
  input::-webkit-inner-spin-button {
      -webkit-appearance: none;
  }
  input{
      -moz-appearance: textfield;
  }
  input[type=date]::-webkit-inner-spin-button { visibility: hidden; }
  .dialog-bottom{
    width:100%;
    height:78px;
    min-height:78px;
    background:rgba(255,255,255,1);
    border-radius:0px 0px 10px 0px;
    padding: 10px 34px;
    align-items: flex-start;
    justify-content: space-between;
    font-size: 14px;
    border-top: none;
    .btn-prev{
      cursor: pointer;
      width:110px;
      line-height:36px;
      background:rgba(255,255,255,1);
      border:1px solid rgba(163,35,37,1);
      color: #A32325;
      border-radius:0;
    }
    .btn-next{
      cursor: pointer;
      line-height: 36px;
      width:110px;
      border-radius: 2px;
    }
  }
  .return{
    cursor: pointer;
    position: fixed;
    right: 0;
    bottom: 50%;
    transform: translateY(300px);
    width:60px;
    height:60px;
    background:rgba(163,35,37,1);
    box-shadow:0px 2px 10px 0px rgba(76,76,76,0.14);
    color:#fff;
    text-align: center;
    padding-top: 13px;
    .top-icon{
      width: 26px;
      object-fit: cover;
      margin-bottom: 6px;
    }
    .text{
      font-size: 14px;
    }
  }
}

/*h5样式*/
.bs4-sm, .bs4-xs {
  font-size: 0.26rem;
  .center-container{
    width: 100%;
  }
  .btn-floating{
    width:100vw;
    line-height:0.92rem;
    text-align: center;
    background:#A32325;
    color: #FFFFFF;
    font-size: 0.32rem;
    position: fixed;
    bottom: 0;
    left: 0;
  }
  .return{
    cursor: pointer;
    position: fixed;
    right: .2rem;
    bottom: 1.2rem;
    width:1.2rem;
    height:1.2rem;
    border-radius: 50%;
    // background:rgba(163,35,37,1);
    // box-shadow:0px 2px 10px 0px rgba(76,76,76,0.14);
    color:#fff;
    text-align: center;
    .top-icon{
      width:1.2rem;
      height:1.2rem;
      object-fit: cover;
    }
  }
}
